//
//  StrategyChildernParser.m
//  ITrip
//
//  Created by dllo on 15/5/30.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "StrategyChildernParser.h"

@implementation StrategyChildernParser

- (void)dealloc
{
    [self.strategy_second_title release];
    [super dealloc];
}

- (instancetype)init:(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        self.sections = [NSMutableArray array];
        self.strategy_second_id = [dic[@"id"]integerValue];
        self.strategy_second_title = dic[@"title"];
        
        NSArray *array = dic[@"sections"];
        for (NSDictionary *dic in array) {
            StrategySectionsParser *parser = [[StrategySectionsParser alloc]init:dic];
            [self.sections addObject:parser];
        }
    }
    return self;
}

- (void)setValue:(id)value forKey:(NSString *)key
{
    if ([key isEqualToString:@""]) {
        
    }
}

- (id)valueForUndefinedKey:(NSString *)key
{
    return nil;
}


@end
